package top.lyc829.zzl_android.logic.bean;

import androidx.room.Entity;
import androidx.room.PrimaryKey;

import com.google.gson.annotations.SerializedName;

/**
 * 通知-评论实体
 * top_source_id : 顶级id（回复的是动态就是动态id，回复的是游记就是游记id，回复的是评论不管套娃多少级都返回一级评论的id！）
 */
@Entity(tableName = "notice_comment")
public class NoticeCommentBean {

    /**
     * id : 123
     * user_id : 123
     * user_avatar : http://pic.lyc829.top/banner1.jpg
     * nickname : GoldenLee
     * put_time : 1617692880
     * source_type : 0
     * source_id : 123
     * top_source_id : 234
     * text : 确实如此，学习了！！！
     * is_read : 0
     */

    @PrimaryKey()
    @SerializedName("id")
    private Integer id;
    @SerializedName("user_id")
    private Integer userId;
    @SerializedName("user_avatar")
    private String userAvatar;
    @SerializedName("nickname")
    private String nickname;
    @SerializedName("put_time")
    private String putTime;
    @SerializedName("source_type")
    private Integer sourceType;
    @SerializedName("source_id")
    private Integer sourceId;
    @SerializedName("top_source_id")
    private Integer topSourceId;
    @SerializedName("text")
    private String text;
    @SerializedName("is_read")
    private Integer isRead;

    private Integer currentLoginUserId;

    public Integer getIsRead() {
        return isRead;
    }

    public void setIsRead(Integer isRead) {
        this.isRead = isRead;
    }

    private Integer noticeType;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPutTime() {
        return putTime;
    }

    public void setPutTime(String putTime) {
        this.putTime = putTime;
    }

    public Integer getSourceType() {
        return sourceType;
    }

    public void setSourceType(Integer sourceType) {
        this.sourceType = sourceType;
    }

    public Integer getSourceId() {
        return sourceId;
    }

    public void setSourceId(Integer sourceId) {
        this.sourceId = sourceId;
    }

    public Integer getTopSourceId() {
        return topSourceId;
    }

    public void setTopSourceId(Integer topSourceId) {
        this.topSourceId = topSourceId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(Integer noticeType) {
        this.noticeType = noticeType;
    }

    @Override
    public String toString() {
        return "NoticeCommentBean{" +
                "id=" + id +
                ", userId=" + userId +
                ", userAvatar='" + userAvatar + '\'' +
                ", nickname='" + nickname + '\'' +
                ", putTime='" + putTime + '\'' +
                ", sourceType=" + sourceType +
                ", sourceId=" + sourceId +
                ", topSourceId=" + topSourceId +
                ", text='" + text + '\'' +
                ", isRead=" + isRead +
                ", noticeType=" + noticeType +
                '}';
    }

    public Integer getCurrentLoginUserId() {
        return currentLoginUserId;
    }

    public void setCurrentLoginUserId(Integer currentLoginUserId) {
        this.currentLoginUserId = currentLoginUserId;
    }
}
